package com.etc.dao;

import com.etc.entity.Department;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentMapper {

    /**
     * 根据条件查询部门
     * @param department
     * @return
     */
    List<Department> findSelective(Department department);

    /**
     * 根据条件插入部门
     * @param department
     * @return
     */
    int insertSelective(Department department);

    /**
     * 根据部门Id修改信息
     * @param department
     * @return
     */
    int updateSelectiveById(Department department);

    /**
     * 根据部门信息删除部门
     * @param department
     * @return
     */
    int deleteSelectiveById(Department department);
}
